package com.gitee.cirnochat.chatai.model.vo.resp;

import com.gitee.cirnochat.chatai.model.entity.AiChatSession;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@Schema(description = "会话视图对象")
public class AIChatSessionVo  implements Serializable {
    /**
     * 会话ID
     */
    @Schema(description = "会话ID")
    private Long id;
    /**
     * 会话名称
     */
    @Schema(description = "会话名称")
    private String sessionName;
    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    public AIChatSessionVo(AiChatSession aiChatSession) {
        BeanUtils.copyProperties(aiChatSession, this);
    }
}
